<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <button>点击</button>
    <script>
        function fn() {
            console.log('人生巅峰');
        }
        fn(); //fn.call();
        var o = {
            sayHi: function() {
                console.log('人生巅峰');
            }
        }
        o.sayHi();

        function Star() {
            // say: console.log('人生巅峰');
        }
        var a = new Star();
        // a.say;
        var btn = document.querySelector('button');
        btn.onclick = function() {
            alert(11);
        }
        setInterval(function() {

        }, 1000);
        (function() {
            console.log('11人生巅峰');
        })();
    </script>
</body>

</html>